home *** CD-ROM | disk | FTP | other *** search
/ This Disc Bytes! / Power Computing - The Disc 2 - This Disc Bytes.ISO / mac / CodeWarrior 7 Lite for 68K / MacOS Support / Headers / Universal Headers / ASRegistry.h < prev    next >
Text File  |  1995-07-06  |  12KB  |  338 lines

  1. /*
  2.      File:        ASRegistry.h
  3.  
  4.      Contains:    AppleScript Registry constants.
  5.  
  6.      Version:    Technology:    AppleScript 1.1
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. */
  19.  
  20. #ifndef __ASREGISTRY__
  21. #define __ASREGISTRY__
  22.  
  23.  
  24. #ifndef __APPLEEVENTS__
  25. #include <AppleEvents.h>
  26. #endif
  27. /*    #include <Errors.h>                                            */
  28. /*        #include <ConditionalMacros.h>                            */
  29. /*    #include <Types.h>                                            */
  30. /*    #include <Memory.h>                                            */
  31. /*        #include <MixedMode.h>                                    */
  32. /*    #include <OSUtils.h>                                        */
  33. /*    #include <Events.h>                                            */
  34. /*        #include <Quickdraw.h>                                    */
  35. /*            #include <QuickdrawText.h>                            */
  36. /*    #include <EPPC.h>                                            */
  37. /*        #include <AppleTalk.h>                                    */
  38. /*        #include <Files.h>                                        */
  39. /*            #include <Finder.h>                                    */
  40. /*        #include <PPCToolbox.h>                                    */
  41. /*        #include <Processes.h>                                    */
  42. /*    #include <Notification.h>                                    */
  43.  
  44. #ifndef __AEREGISTRY__
  45. #include <AERegistry.h>
  46. #endif
  47.  
  48. #ifndef __AEOBJECTS__
  49. #include <AEObjects.h>
  50. #endif
  51.  
  52. #ifdef __cplusplus
  53. extern "C" {
  54. #endif
  55.  
  56. #if PRAGMA_ALIGN_SUPPORTED
  57. #pragma options align=mac68k
  58. #endif
  59.  
  60. #if PRAGMA_IMPORT_SUPPORTED
  61. #pragma import on
  62. #endif
  63.  
  64.  
  65. enum {
  66.     keyAETarget                    = 'targ',                        /*  0x74617267  */
  67.     keySubjectAttr                = 'subj',                        /*  0x7375626a  */
  68. /* Magic 'returning' parameter: */
  69.     keyASReturning                = 'Krtn',                        /*  0x4b72746e  */
  70. /* AppleScript Specific Codes: */
  71.     kASAppleScriptSuite            = 'ascr',                        /*  0x61736372  */
  72.     kASTypeNamesSuite            = 'tpnm',                        /*  0x74706e6d  */
  73. /* dynamic terminologies */
  74.     typeAETE                    = 'aete',                        /*  0x61657465  */
  75.     typeAEUT                    = 'aeut',                        /*  0x61657574  */
  76.     kGetAETE                    = 'gdte',                        /*  0x67647465  */
  77.     kGetAEUT                    = 'gdut',                        /*  0x67647574  */
  78.     kUpdateAEUT                    = 'udut',                        /*  0x75647574  */
  79.     kUpdateAETE                    = 'udte',                        /*  0x75647465  */
  80.     kCleanUpAEUT                = 'cdut',                        /*  0x63647574  */
  81.     kASComment                    = 'cmnt',                        /*  0x636d6e74  */
  82.     kASLaunchEvent                = 'noop',                        /*  0x6e6f6f70  */
  83.     keyScszResource                = 'scsz',                        /*  0x7363737A  */
  84.     typeScszResource            = 'scsz',                        /*  0x7363737A  */
  85. /* subroutine calls */
  86.     kASSubroutineEvent            = 'psbr',                        /*  0x70736272  */
  87.     keyASSubroutineName            = 'snam'
  88. };
  89.  
  90. /* Operator Events: */
  91. enum {
  92. /* Binary: */
  93.     kASAdd                        = '+   ',                        /*  0x2b202020  */
  94.     kASSubtract                    = '-   ',                        /*  0x2d202020  */
  95.     kASMultiply                    = '*   ',                        /*  0x2a202020  */
  96.     kASDivide                    = '/   ',                        /*  0x2f202020  */
  97.     kASQuotient                    = 'div ',                        /*  0x64697620  */
  98.     kASRemainder                = 'mod ',                        /*  0x6d6f6420  */
  99.     kASPower                    = '^   ',                        /*  0x5e202020  */
  100.     kASEqual                    = kAEEquals,
  101.     kASNotEqual                    = '≠   ',                        /*  0xad202020  */
  102.     kASGreaterThan                = kAEGreaterThan,
  103.     kASGreaterThanOrEqual        = kAEGreaterThanEquals,
  104.     kASLessThan                    = kAELessThan,
  105.     kASLessThanOrEqual            = kAELessThanEquals,
  106.     kASComesBefore                = 'cbfr',                        /*  0x63626672  */
  107.     kASComesAfter                = 'cafr',                        /*  0x63616672  */
  108.     kASConcatenate                = 'ccat',                        /*  0x63636174  */
  109.     kASStartsWith                = kAEBeginsWith,
  110.     kASEndsWith                    = kAEEndsWith,
  111.     kASContains                    = kAEContains
  112. };
  113.  
  114. enum {
  115.     kASAnd                        = kAEAND,
  116.     kASOr                        = kAEOR,
  117. /* Unary: */
  118.     kASNot                        = kAENOT,
  119.     kASNegate                    = 'neg ',                        /*  0x6e656720  */
  120.     keyASArg                    = 'arg '
  121. };
  122.  
  123. enum {
  124. /* event code for the 'error' statement */
  125.     kASErrorEventCode            = 'err ',                        /*  0x65727220  */
  126.     kOSAErrorArgs                = 'erra',                        /*  0x65727261  */
  127. /* Properties: */
  128.     pLength                        = 'leng',                        /*  0x6c656e67  */
  129.     pReverse                    = 'rvse',                        /*  0x72767365  */
  130.     pRest                        = 'rest',                        /*  0x72657374  */
  131.     pInherits                    = 'c@#^',                        /*  0x6340235e  */
  132. /* User-Defined Record Fields: */
  133.     keyASUserRecordFields        = 'usrf',                        /*  0x75737266  */
  134.     typeUserRecordFields        = typeAEList
  135. };
  136.  
  137. /* Prepositions: */
  138. enum {
  139.     keyASPrepositionAt            = 'at  ',                        /*  0x61742020  */
  140.     keyASPrepositionIn            = 'in  ',                        /*  0x696e2020  */
  141.     keyASPrepositionFrom        = 'from',                        /*  0x66726f6d  */
  142.     keyASPrepositionFor            = 'for ',                        /*  0x666f7220  */
  143.     keyASPrepositionTo            = 'to  ',                        /*  0x746f2020  */
  144.     keyASPrepositionThru        = 'thru',                        /*  0x74687275  */
  145.     keyASPrepositionThrough        = 'thgh',                        /*  0x74686768  */
  146.     keyASPrepositionBy            = 'by  ',                        /*  0x62792020  */
  147.     keyASPrepositionOn            = 'on  ',                        /*  0x6f6e2020  */
  148.     keyASPrepositionInto        = 'into',                        /*  0x696e746f  */
  149.     keyASPrepositionOnto        = 'onto',                        /*  0x6f6e746f  */
  150.     keyASPrepositionBetween        = 'btwn',                        /*  0x6274776e  */
  151.     keyASPrepositionAgainst        = 'agst',                        /*  0x61677374  */
  152.     keyASPrepositionOutOf        = 'outo',                        /*  0x6f75746f  */
  153.     keyASPrepositionInsteadOf    = 'isto',                        /*  0x6973746f  */
  154.     keyASPrepositionAsideFrom    = 'asdf',                        /*  0x61736466  */
  155.     keyASPrepositionAround        = 'arnd',                        /*  0x61726e64  */
  156.     keyASPrepositionBeside        = 'bsid',                        /*  0x62736964  */
  157.     keyASPrepositionBeneath        = 'bnth',                        /*  0x626e7468  */
  158.     keyASPrepositionUnder        = 'undr'
  159. };
  160.  
  161. enum {
  162.     keyASPrepositionOver        = 'over',                        /*  0x6f766572  */
  163.     keyASPrepositionAbove        = 'abve',                        /*  0x61627665  */
  164.     keyASPrepositionBelow        = 'belw',                        /*  0x62656c77  */
  165.     keyASPrepositionApartFrom    = 'aprt',                        /*  0x61707274  */
  166.     keyASPrepositionGiven        = 'givn',                        /*  0x6769766e  */
  167.     keyASPrepositionWith        = 'with',                        /*  0x77697468  */
  168.     keyASPrepositionWithout        = 'wout',                        /*  0x776f7574  */
  169.     keyASPrepositionAbout        = 'abou',                        /*  0x61626f75  */
  170.     keyASPrepositionSince        = 'snce',                        /*  0x736e6365  */
  171.     keyASPrepositionUntil        = 'till'
  172. };
  173.  
  174. enum {
  175. /* Terminology & Dialect things: */
  176.     kDialectBundleResType        = 'Dbdl',                        /*  0x4462646c  */
  177. /* AppleScript Classes and Enums: */
  178.     cConstant                    = typeEnumerated,
  179.     cClassIdentifier            = pClass,
  180.     cObjectBeingExamined        = typeObjectBeingExamined,
  181.     cList                        = typeAEList,
  182.     cSmallReal                    = typeSMFloat,
  183.     cReal                        = typeFloat,
  184.     cRecord                        = typeAERecord,
  185.     cReference                    = cObjectSpecifier,
  186.     cUndefined                    = 'undf',                        /*  0x756e6466  */
  187.     cSymbol                        = 'symb',                        /*  0x73796d62  */
  188.     cLinkedList                    = 'llst',                        /*  0x6c6c7374  */
  189.     cVector                        = 'vect',                        /*  0x76656374  */
  190.     cEventIdentifier            = 'evnt',                        /*  0x65766e74  */
  191.     cKeyIdentifier                = 'kyid',                        /*  0x6b796964  */
  192.     cUserIdentifier                = 'uid ',                        /*  0x75696420  */
  193.     cPreposition                = 'prep',                        /*  0x70726570  */
  194.     cKeyForm                    = enumKeyForm,
  195.     cScript                        = 'scpt',                        /*  0x73637074  */
  196.     cHandler                    = 'hand',                        /*  0x68616e64  */
  197.     cProcedure                    = 'proc'
  198. };
  199.  
  200. enum {
  201.     cClosure                    = 'clsr',                        /*  0x636c7372  */
  202.     cRawData                    = 'rdat',                        /*  0x72646174  */
  203.     cString                        = typeChar,
  204.     cStringClass                = typeChar,
  205.     cNumber                        = 'nmbr',                        /*  0x6e6d6272  */
  206.     cListOrRecord                = 'lr  ',                        /*  0x6c722020  */
  207.     cListOrString                = 'ls  ',                        /*  0x6c732020  */
  208.     cListRecordOrString            = 'lrs ',                        /*  0x6c727320  */
  209.     cNumberOrDateTime            = 'nd  ',                        /*  0x6e642020  */
  210.     cNumberDateTimeOrString        = 'nds ',                        /*  0x6e647320  */
  211.     cSeconds                    = 'scnd',                        /*  0x73636e64  */
  212.     enumBooleanValues            = 'boov',                        /*  0x626f6f76  */
  213.     kAETrue                        = typeTrue,
  214.     kAEFalse                    = typeFalse,
  215.     enumMiscValues                = 'misc',                        /*  0x6d697363  */
  216.     kASCurrentApplication        = 'cura',                        /*  0x63757261  */
  217. /* User-defined property ospecs: */
  218.     formUserPropertyID            = 'usrp'
  219. };
  220.  
  221. enum {
  222. /* Global properties: */
  223.     pASIt                        = 'it  ',                        /*  0x69742020  */
  224.     pASMe                        = 'me  ',                        /*  0x6d652020  */
  225.     pASResult                    = 'rslt',                        /*  0x72736c74  */
  226.     pASSpace                    = 'spac',                        /*  0x73706163  */
  227.     pASReturn                    = 'ret ',                        /*  0x72657420  */
  228.     pASTab                        = 'tab ',                        /*  0x74616220  */
  229.     pASPi                        = 'pi  ',                        /*  0x70692020  */
  230.     pASParent                    = 'pare',                        /*  0x70617265  */
  231.     kASInitializeEventCode        = 'init',                        /*  0x696e6974  */
  232.     pASPrintLength                = 'prln',                        /*  0x70726c6e  */
  233.     pASPrintDepth                = 'prdp',                        /*  0x70726470  */
  234.     pASTopLevelScript            = 'ascr'
  235. };
  236.  
  237. enum {
  238. /* Considerations */
  239.     kAECase                        = 'case',                        /*  0x63617365  */
  240.     kAEDiacritic                = 'diac',                        /*  0x64696163  */
  241.     kAEWhiteSpace                = 'whit',                        /*  0x77686974  */
  242.     kAEHyphens                    = 'hyph',                        /*  0x68797068  */
  243.     kAEExpansion                = 'expa',                        /*  0x65787061  */
  244.     kAEPunctuation                = 'punc',                        /*  0x70756e63  */
  245.     kAEZenkakuHankaku            = 'zkhk',                        /*  0x7a6b686b  */
  246.     kAESmallKana                = 'skna',                        /*  0x736b6e61  */
  247.     kAEKataHiragana                = 'hika',                        /*  0x68696b61  */
  248. /* AppleScript considerations: */
  249.     kASConsiderReplies            = 'rmte',                        /*  0x726d7465  */
  250.     enumConsiderations            = 'cons'
  251. };
  252.  
  253. enum {
  254.     cCoercion                    = 'coec',                        /*  0x636f6563  */
  255.     cCoerceUpperCase            = 'txup',                        /*  0x74787570  */
  256.     cCoerceLowerCase            = 'txlo',                        /*  0x74786c6f  */
  257.     cCoerceRemoveDiacriticals    = 'txdc',                        /*  0x74786463  */
  258.     cCoerceRemovePunctuation    = 'txpc',                        /*  0x74787063  */
  259.     cCoerceRemoveHyphens        = 'txhy',                        /*  0x74786879  */
  260.     cCoerceOneByteToTwoByte        = 'txex',                        /*  0x74786578  */
  261.     cCoerceRemoveWhiteSpace        = 'txws',                        /*  0x74787773  */
  262.     cCoerceSmallKana            = 'txsk',                        /*  0x7478736b  */
  263.     cCoerceZenkakuhankaku        = 'txze',                        /*  0x74787a65  */
  264.     cCoerceKataHiragana            = 'txkh',                        /*  0x74786b68  */
  265. /* Lorax things: */
  266.     cZone                        = 'zone',                        /*  0x7a6f6e65  */
  267.     cMachine                    = 'mach',                        /*  0x6d616368  */
  268.     cAddress                    = 'addr',                        /*  0x61646472  */
  269.     cRunningAddress                = 'radd',                        /*  0x72616464  */
  270.     cStorage                    = 'stor'
  271. };
  272.  
  273. enum {
  274. /* DateTime things: */
  275.     pASWeekday                    = 'wkdy',                        /*  0x776b6479  */
  276.     pASMonth                    = 'mnth',                        /*  0x6d6e7468  */
  277.     pASDay                        = 'day ',                        /*  0x64617920  */
  278.     pASYear                        = 'year',                        /*  0x79656172  */
  279.     pASTime                        = 'time',                        /*  0x74696d65  */
  280.     pASDateString                = 'dstr',                        /*  0x64737472  */
  281.     pASTimeString                = 'tstr',                        /*  0x74737472  */
  282. /* Months */
  283.     cMonth                        = pASMonth,
  284.     cJanuary                    = 'jan ',                        /*  0x6a616e20  */
  285.     cFebruary                    = 'feb ',                        /*  0x66656220  */
  286.     cMarch                        = 'mar ',                        /*  0x6d617220  */
  287.     cApril                        = 'apr ',                        /*  0x61707220  */
  288.     cMay                        = 'may ',                        /*  0x6d617920  */
  289.     cJune                        = 'jun ',                        /*  0x6a756e20  */
  290.     cJuly                        = 'jul ',                        /*  0x6a756c20  */
  291.     cAugust                        = 'aug ',                        /*  0x61756720  */
  292.     cSeptember                    = 'sep ',                        /*  0x73657020  */
  293.     cOctober                    = 'oct ',                        /*  0x6f637420  */
  294.     cNovember                    = 'nov ',                        /*  0x6e6f7620  */
  295.     cDecember                    = 'dec '
  296. };
  297.  
  298. enum {
  299. /* Weekdays */
  300.     cWeekday                    = pASWeekday,
  301.     cSunday                        = 'sun ',                        /*  0x73756e20  */
  302.     cMonday                        = 'mon ',                        /*  0x6d6f6e20  */
  303.     cTuesday                    = 'tue ',                        /*  0x74756520  */
  304.     cWednesday                    = 'wed ',                        /*  0x77656420  */
  305.     cThursday                    = 'thu ',                        /*  0x74687520  */
  306.     cFriday                        = 'fri ',                        /*  0x66726920  */
  307.     cSaturday                    = 'sat ',                        /*  0x73617420  */
  308. /* AS 1.1 Globals: */
  309.     pASQuote                    = 'quot',                        /*  0x71756f74  */
  310.     pASSeconds                    = 'secs',                        /*  0x73656373  */
  311.     pASMinutes                    = 'min ',                        /*  0x6d696e20  */
  312.     pASHours                    = 'hour',                        /*  0x686f7572  */
  313.     pASDays                        = 'days',                        /*  0x64617973  */
  314.     pASWeeks                    = 'week',                        /*  0x7765656b  */
  315. /* Writing Code things: */
  316.     cWritingCodeInfo            = 'citl',                        /*  0x6369746c  */
  317.     pScriptCode                    = 'pscd',                        /*  0x70736364  */
  318.     pLangCode                    = 'plcd',                        /*  0x706c6364  */
  319. /* Magic Tell and End Tell events for logging: */
  320.     kASMagicTellEvent            = 'tell',                        /*  0x74656c6c  */
  321.     kASMagicEndTellEvent        = 'tend'
  322. };
  323.  
  324.  
  325. #if PRAGMA_IMPORT_SUPPORTED
  326. #pragma import off
  327. #endif
  328.  
  329. #if PRAGMA_ALIGN_SUPPORTED
  330. #pragma options align=reset
  331. #endif
  332.  
  333. #ifdef __cplusplus
  334. }
  335. #endif
  336.  
  337. #endif /* __ASREGISTRY__ */
  338.